<?php

$htmlOutput = array();
$htmlOutput[] = '<div class="users view">';
$htmlOutput[] = sprintf('<h2>%s</h2>', __('User', true));
$htmlOutput[] =     '<dl>';
$i = 0; 
$class = ' class="altrow"';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Id', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $user['User']['id'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Username', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $user['User']['username'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Password', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $user['User']['password'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Created', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $user['User']['created'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Modified', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $user['User']['modified'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Group', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $html->link($user['Group']['name'], array('controller'=> 'groups', 'action'=>'view', $user['Group']['id']));
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = '	</dl>';
$htmlOutput[] = '</div>';
$htmlOutput[] = '<div class="actions">';
$htmlOutput[] = '	<ul>';
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Edit User', true), array('action'=>'edit', $user['User']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Delete User', true), array('action'=>'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('List Users', true), array('action'=>'index')));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('New User', true), array('action'=>'add')));
$htmlOutput[] = '	</ul>';
$htmlOutput[] = '</div>';

echo implode("\n", $htmlOutput);

?>